#ifndef _CMAPREADER_H
#define _CMAPREADER_H

#include "CTexture.h"

class CMapReader
{
public:
	//--------------------------------------------//
	//	Constructor and Destructor for this class //
	//--------------------------------------------//
	CMapReader();
	virtual ~CMapReader();

	//--------------------------------//
	//	Public methods for this class //
	//--------------------------------//
	HRESULT		LoadRawMap			(LPCTSTR FileName , LPDIRECT3DDEVICE9 pD3dDevice );
	D3DCOLOR**	GetRawMap			( );

	int			GetMapWidth			( );
	int			GetMapHeight		( );

	void		Release				( );
private:
	//-----------------------------------//
	//	Private variables for this class //
	//-----------------------------------//
	LPDIRECT3DTEXTURE9				m_pRaw;
	int								m_nMapWidth;
	int								m_nMapHeight;
};


#endif